﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择您的身份：1老师，2学生");
            int a = Convert.ToInt32(Console.ReadLine());
            if (a==1)
            {
                Teacher tea1 = new Teacher();
                Console.WriteLine("请输入您的id");
                int id= Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("请输入您的名字");
                string name = Console.ReadLine();
                Console.WriteLine("请输入您的性别");
                string sex = Console.ReadLine();
                Console.WriteLine("请输入您的身份证号");
                double cardid= Convert.ToDouble(Console.ReadLine());
                Console.WriteLine("请输入您的联系方式");
                double tel = Convert.ToDouble(Console.ReadLine());
                Console.WriteLine("请输入您的职称");
                string title = Console.ReadLine();
                Console.WriteLine("请输入您的工资号");
                double wageno = Convert.ToDouble(Console.ReadLine());
                tea1.DaYinLao();
            }
            else if (a==2)
            {
                Student stu1 = new Student();
                Console.WriteLine("请输入您的id");
                int id = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("请输入您的名字");
                string name = Console.ReadLine();
                Console.WriteLine("请输入您的性别");
                string sex = Console.ReadLine();
                Console.WriteLine("请输入您的身份证号");
                double cardid = Convert.ToDouble(Console.ReadLine());
                Console.WriteLine("请输入您的联系方式");
                double tel = Convert.ToDouble(Console.ReadLine());
                Console.WriteLine("请输入您的专业");
                string major = Console.ReadLine();
                Console.WriteLine("请输入您的班级");
                double clas = Convert.ToDouble(Console.ReadLine());
                stu1.DaYinXue();
            }
        }
    }
}
